package com.login;

import com.databasefunction.AllDBFunction;

public class LoginFunctions {
	public String whatIsRole(String user,String pass){
		AllDBFunction allDBFunction = new AllDBFunction();
		String role = allDBFunction.getrole(user, pass);
		return role;
	}
	
	public boolean isUserPresent(String user){
		//call DB for the data
		AllDBFunction allDBFunction = new AllDBFunction();
		boolean result = allDBFunction.isuserexist(user);
		return result;
	}
}
